package com.yao.seckill.web.vo;

import com.yao.seckill.web.validator.annotation.IsMobile;
import lombok.*;

import java.time.LocalDateTime;

/**
 * Copyright (C), 2022-2022, 姚兵
 * Author: 32210
 * Date: 2022/8/30 19:44
 * FileName: UserVO
 * Description: User的Vo对象，前端传值
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Builder
public class UserVO {

    private static final long serialVersionUID = 1L;

    @IsMobile
    private String mobile;

    private String nickname;

    /**
     * MD5二次加密
     */
    private String pasword;


    private String slat;

    /**
     * 头像
     */
    private String head;

    /**
     * 注册时间
     */
    private LocalDateTime registerDate;

    /**
     * 最后一次登录时间
     */
    private LocalDateTime lastLoginDate;

    /**
     * 登录次数
     */
    private Integer loginCount;

}
